package com.ncepu.clubmanagement.mapper;

import com.ncepu.clubmanagement.pojo.UrlResource;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UrlResourceMapper {

    @Insert("insert into url_resource(file_url,used) values(#{fileUrl},#{used})")
    void insertUrlResource(UrlResource urlResource);

    @Update("update url_resource set used = #{used} where file_url = #{fileUrl}")
    void updateUrlResourceByUrl(UrlResource urlResource);
}
